using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UIMgr : SigtMnb<UIMgr>
{
    public UpgMenuUIMgr _menuMgr;
    public HPUIMgr _HPMgr;
    public MPUIMgr _MPMgr;

    private void Awake() { IniSigt(); }

    private void Start() { }

    private void Update() { }

    public void IniDspl()
    {
        _menuMgr.gameObject.SetActive(true);
        _HPMgr.gameObject.SetActive(true);
        _MPMgr.gameObject.SetActive(true);
        _HPMgr.IniDspl(GameManager.Instance._UIPM);
        _MPMgr.IniDspl(GameManager.Instance._UIPM);
        _menuMgr.IniDspl(GameManager.Instance._UIPM, GameManager.Instance._UISM);
    }

    public void DsplHUD()
    {
        _menuMgr.Close();
        _HPMgr.Dspl();
        _MPMgr.Dspl();
        RfrHUD();
    }

    public void DsplRscSetting()
    {
        _HPMgr.Close();
        _MPMgr.Close();
        _menuMgr.Dspl();
        _menuMgr.Rfr();
    }

    public void RfrHUD()
    {
        _HPMgr.Rfr();
        _MPMgr.Rfr();
    }

    public void RfrBufferProp() { _menuMgr.RfrBufferProp(); }
}
